package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.Phones;
import dao.ABSBasicDAO;
import domain.vo.queryObject;

public class PhonesDAOImpl extends ABSBasicDAO<Phones> {
	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public PhonesDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
	

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.Object)
	 */
	@Override
	public void insertT(Phones t) throws SQLException {
		sqlMapClient.insert("Phones.insertPhonesInfo", t);
	}
	
	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getObjectByQueryObject(domain.vo.queryObject)
	 */
	@Override
	public List<Phones> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		// TODO Auto-generated method stub
		return (List<Phones>)sqlMapClient.queryForList("Phones.getPhonesByQueryObject", queryObject);
	}
	

}
